package com.dailyplanner.mail.config;

import java.io.IOException;
import java.util.Properties;

import javax.ejb.Stateless;

//TODO load, give to inject only properties
@Stateless
public class MailConfiguration {
	private static final String MAIL_PROP_FILENAME = "mail.properties";
	
	public Properties getMaProperties(){
		Properties properties = new Properties();
		try {
			properties.load(MailConfiguration.class.getClassLoader().getResourceAsStream(MAIL_PROP_FILENAME));
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		return properties;
	}
}
